from utils.client import APIClient
from utils.yaml_config import get_yaml


data = get_yaml('userlist.yaml')

class Api_UserList:


    def __init__(self,client:APIClient):
        self.client = client

    def userlist_list(self):
        userlist_data = data['list']['request']
        return self.client.request(userlist_data['method'],userlist_data['path'],json=userlist_data['json'])
    
    def userlist_set(self):
        userlist_data = data['set']['request']
        return self.client.request(userlist_data['method'],userlist_data['path'],json=userlist_data['json'])